package com.meituan.catering.management.shop.utils;

import org.apache.commons.lang3.StringUtils;

/**
 * @author Believe
 * Date 2022/5/20 14:47
 */
public class EscapeStr {
    public static String escapeStr(String str) {
        if (str != null) {
            str = str.replaceAll("\\\\", "\\\\\\\\");
            str = str.replaceAll("_", "\\\\_");
            str = str.replaceAll("%", "\\\\%");
        }
        return str;
    }
}
